//
//  Extention+UiLable.swift
//  gu-新浪微博
//
//  Created by xiaohui on 16/6/28.
//  Copyright © 2016年 gusheghui. All rights reserved.
//

import UIKit

extension UILabel {
    
    convenience init(textColor:UIColor,textFont:CGFloat,maxWdith:CGFloat = 0) {
        self.init()
        self.textColor = textColor
        self.font = UIFont.systemFontOfSize(textFont)
        
        if maxWdith > 0{
            self.preferredMaxLayoutWidth = maxWdith
            self.numberOfLines = 0
        }
        
    }
    
}
